<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据类型</title>
</head>
<body>
    
    <script>
        /*
        基本类型 number string boolean undefined null
        引用数据类型
        Array Function Object
        */
       document.write(typeof(99))
       document.write('<hr>')
       document.write(typeof(9.9))     
       document.write(typeof('9.9'))     
       document.write(typeof("弄哈"))       
       document.write('<hr>')

        document.write(typeof(true))
        document.write(typeof(false))

        var nu1
        var nu2 = undefined
        var nu3 = null
        document.write('===========')

        document.write(typeof(nu1))
        document.write('--------')

        document.write(typeof(nu2))

        document.write('--------')
        document.write(typeof(nu3))

        arr1 = [1,2,4]
        document.write(typeof(arr1))


        function fn(){
            //函数体
        }

        document.write(typeof(fn))


        obje1 = {name:'刘刘', age :89}
        document.write(typeof(obje1))
        
        document.write('<br>')
        document.write(obje1)

    </script>
</body>
</html>